﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InventoryPro.DAL;

namespace InventoryPro.BL
{
    public class OrderLogic
    {
        OrderDAO dao = new OrderDAO();


        public List<Order> GetAllOrders()
        {

            return dao.GetAllOrders();
        }

        public Order GetOrderbyID(int ID)
        {
            return dao.GetOrderbyID(ID);
        }


        public void CreateOrder(Order product)
        {

            dao.CreateOrder(product);
        }


        public void UpdateOrder(Order product)
        {

            dao.UpdateOrder(product);
        }


        public void DeleteOrder(int ID)
        {
            dao.DeleteOrder(ID);

        }

        public List<Order> Search(SearchOrder searchObj)
        {
            return dao.Search(searchObj);
            
        }
    }
}
